<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>修改密码</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light p-5">
<div class="container bg-white p-4 rounded shadow">
    <h2>修改密码</h2>
    {% with messages = get_flashed_messages() %}
    {% if messages %}
        <div class="alert alert-info mt-2">
            {% for msg in messages %} {{ msg }} {% endfor %}
        </div>
    {% endif %}
    {% endwith %}
    <form method="POST">
        <div class="mb-3">
            <label>原密码：</label>
            <input type="password" name="old_password" class="form-control" required>
        </div>
        <div class="mb-3">
            <label>新密码：</label>
            <input type="password" name="new_password" class="form-control" required>
        </div>
        <button type="submit" class="btn btn-success">提交</button>
        <a href="{{ url_for('customer.dashboard') }}" class="btn btn-secondary">返回</a>
    </form>
</div>
</body>
</html>
